//
//  UIImage+ZK.h
//  ZAKER
//
//  Created by Anyfish002 on 16/2/16.
//  Copyright © 2016年 yaohongchao. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface UIImage (ZK)
+ (UIImage *)imageNameFromeBundle:(NSString *)imgName;

+ (UIImage *)imageWithColor:(UIColor *)color;
///< 获得灰度图
+ (UIImage*)covertToGrayImageFromImage:(UIImage*)sourceImage;

+ (UIImage *)imageWithColorString:(NSString *)colorString frame:(CGRect)frame;

+ (UIImage *)imageWithColor:(UIColor *)color frame:(CGRect)frame;

- (UIImage *)croppedImage:(CGRect)bounds;

-(UIImage*)getCenterImage:(CGSize)originSize thumbSize:(CGSize)thumbSize;

- (UIImage *)cutToCircle:(BOOL)clipToCircle
             withDiamter:(CGFloat)diameter
             borderColor:(UIColor *)borderColor
             borderWidth:(CGFloat)borderWidth
            shadowOffSet:(CGSize)shadowOffset;

-(UIImage*)getRecommedImage:(UIColor*)color;
@end
